package com.jzo2o.customer.controller.agency;

import com.jzo2o.customer.model.domain.ServeSkill;
import com.jzo2o.customer.model.dto.request.AgencyCertificationAuditAddReqDTO;
import com.jzo2o.customer.model.dto.request.InstitutionStaffUpsertReqDTO;
import com.jzo2o.customer.model.dto.response.RejectReasonResDTO;
import com.jzo2o.customer.model.dto.response.ServeSkillCategoryResDTO;
import com.jzo2o.customer.service.IAgencyCertificationService;
import com.jzo2o.customer.service.IServeSkillService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.*;

import javax.annotation.Resource;
import java.util.List;

@RestController("agencyCerticationController")
@RequestMapping("/agency/agency-certification-audit")
@Api(tags = "机构端 - 机构人员相关接口")
public class AgencyCerticationController {

    @Resource
    private IAgencyCertificationService agencyCertificationService;

    @Resource
    private IServeSkillService serveSkillService;

    @PostMapping
    @ApiOperation("机构提交认证")
    public void addCertification(@RequestBody AgencyCertificationAuditAddReqDTO agencyCertificationAuditAddReqDTO) {
        agencyCertificationService.addCertification(agencyCertificationAuditAddReqDTO);
    }

    @GetMapping("/rejectReason")
    @ApiOperation("查询最新驳回原因")
    public RejectReasonResDTO failMsg() {
        return agencyCertificationService.failMsg();
    }

}